import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "纪俊逸的学习博客",
  description: "天道酬勤",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: 'Linux', link: '/pages/linux' },
      { text: '数据库', link: '/pages/mysql' },
      { text: 'java基础', link: '/pages/java' },
      { text: 'web前端', link: '/pages/web-frontend' },
      { text: 'web后端', link: '/pages/web-backend' },
      { text: '框架', link: '/pages/framework' },
      { text: '其他', link: '/pages/other' }
    ],

    sidebar: {
      '/pages/linux':[
        {text:'概述', link:'/pages/linux/'},
        {text:'Linux常用知识', link:'/pages/linux/Linux常用知识'},
        {text:'网络基础知识', link:'/pages/linux/网络基础知识'},
        {text:'配置静态IP地址', link:'/pages/linux/配置静态IP地址'},
        {text:'配置阿里云Yum软件仓库', link:'/pages/linux/配置阿里云Yum软件仓库'},
        {text:'安装Nginx', link:'/pages/linux/安装Nginx'},
        {text:'防火墙管理', link:'/pages/linux/防火墙管理'},
        {text:'端口管理', link:'/pages/linux/端口管理'},
      ],
      '/pages/mysql':{},
      '/pages/java':{},
      '/pages/web-frontend':{},
      '/pages/web-backend':{},
      '/pages/framework':{},
      '/pages/other':{},
    },

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
